﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.YouZanYun.Model.Inter.Item
{
    public class Param
    {
        public Param()
        {
            item_type = 0;
            is_display = 0;
            quantity = 0;
        }

        /// <summary>
        ///  商品类型，0-实物商品,60-虚拟商品,61-电子卡劵，63-茶饮烘焙
        /// </summary>
        public int item_type { get; set; }

        //物流
        public item_delivery_param item_delivery_param { get; set; }

        //类目 
        public category_param category_param { get; set; }

        /// <summary>
        /// 商品标题
        /// </summary>
        public string title { get; set; }
         
        /// <summary>
        /// 商品自定义编码
        /// </summary>
        public string item_no { get; set; }

        /// <summary>
        /// 商品库存
        /// </summary>
        public int quantity { get; set; }

        private string _desc = "测试"; 
        public string desc
        {
            get { return _desc; }
            set { _desc = value; }
        }

        private item_price_param _item_price_param = new item_price_param();  
        public item_price_param item_price_param
        {
            get { return _item_price_param ; }
            set { _item_price_param =  value; }
        }
         
        private List<long> _image_ids; 
        public List<long> image_ids
        {
            get { return _image_ids; }
            set { _image_ids = value; }
        }

        /// <summary>
        /// 商品需要上架的网店店铺id（kdt_id）列表
        /// </summary>
        public List<long> display_on_kdt_ids { get; set; }

        /// <summary>
        /// 是否上架商品，1—上架商品，0—不上架商品(管理端显示为仓库中)，新增若不传该字段默认传1
        /// </summary>
        public int is_display { get; set; } = 1;

        private int _hide_stock = 0;
        /// <summary>
        /// 是否隐藏商品库存，在商品展示时不显示商品的库存，0-显示库存，1-不显示库存，默认0
        /// </summary>
        public int hide_stock
        {
            get { return _hide_stock; }
            set { _hide_stock = value; }
        }

        /// <summary>
        /// 有赞连锁网店店铺id，仅供有赞连锁场景下使用。有赞平台生成，在有赞平台唯一，用于判断信息属于哪一个网店
        /// </summary>
        public int node_kdt_id { get; set; }

        /// <summary>
        /// 商品SPU维度的条形码
        /// </summary>
        public string barcode { get; set; }
    }
}
